package cn.hxsteel.storage.model.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import cn.hxsteel.model.vo.PageVO;
import cn.hxsteel.storage.core.base.BaseDAO;
import cn.hxsteel.storage.model.bo.Depot2BO;
import cn.hxsteel.storage.model.po.DepotPO;
import cn.hxsteel.storage.module.goods.model.DepotBO;

/**
 * 仓库的数据访问对象
 */
@Repository
public class DepotDAO extends BaseDAO< DepotPO, Short >
{
    public List< DepotPO > selDepotList()
    {
	return null;
	// return selProcList( "p_Depot_list_1" );
    }
    
    /**
     * 分页查询仓库
     * 
     * @param pageNo 页码
     * @param pageSize 每页多少条记录
     * @return
     */
    public PageVO< DepotBO > selPage( int pageNo, int pageSize )
    {
	return null;
	// return (PageVO< DepotBO >) selExProcPage( DepotBO.class, "p_Depot_page", pageNo, pageSize );
    }
    
    /**
     * 查询数据库是否存在记录
     * 
     * @return
     */
    public DepotPO seldepot()
    {
	return null;
	// return selProcObj( "p_Depot_obj_sel" );
    }
    
    /**
     * 通过仓库ID查找子仓库
     * 
     * @param id 仓库ID
     * @return
     */
    public DepotPO seldepotByID( int id )
    {
	return null;
	// return selProcObj( "p_Depot_obj_sel_1", id );
    }
    
    /**
     * 通过仓库name查找父仓库
     * 
     * @param name 仓库name
     * @return
     */
    public DepotPO seldepotByName( String name )
    {
	return null;
	// return selProcObj( "p_Depot_obj_sel_2", name );
    }
    
    /**
     * 修改操作判断仓库名称是否存在
     * 
     * @param id 仓库ID
     * @param pid 仓库PID
     * @param name 仓库name
     * @return
     */
    public DepotPO seldepotBy1( int id, int pid, String name )
    {
	return null;
	// return selProcObj( "p_Depot_obj_sel_3", id, pid, name );
    }
    
    /**
     * 查找出父仓库名称
     * 
     * @return
     */
    public List< DepotPO > sellistdeot()
    {
	return null;
	// return selProcList( "p_Depot_list" );
    }
    
    /**
     * 添加操作判断仓库名称是否存在
     * 
     * @param pid 仓库PID
     * @param name 仓库name
     * @return
     */
    public DepotPO seldepotByNameAndPID( int pid, String name )
    {
	return null;
	// return selProcObj( "p_Depot_obj_sel_4", pid, name );
    }
    
    /**
     * 录入基础数据分页
     * 
     * @param pageNo 页码
     * @param pageSize 每页多少条记录
     * @param id 仓库ID
     * @return
     */
    public PageVO< Depot2BO > selPage1( int pageNo, int pageSize, int id )
    {
	return null;
	// return (PageVO< Depot2BO >) selExProcPage( Depot2BO.class, "p_Depot_page_1", pageNo, pageSize, id );
    }
}